#ifndef LIGHTPOINT_H
#define LIGHTPOINT_H

#include <QWidget>
#include <QPainter>
#include <QPaintEvent>
#include <QColor>
#include <QTimer>

class LightPoint : public QWidget
{
    Q_OBJECT
public:
    LightPoint(QWidget *parent = 0);

    int step;
    int interval;
    QColor bgColor;
    QTimer *timer;
    int offset;
    bool add;


    void paintEvent(QPaintEvent *);
    void drawBg(QPainter *painter);


public slots:
    void setStep(int step);
    void setInterval(int interval);
    void setBgColor(const QColor &bgColor);
};

#endif // LIGHTPOINT_H
